//
//  PSMovingImageTestViewController.m
//  PSControls
//
//  Created by Matias Ginart on 11/04/11.
//  Copyright 2011 Casa. All rights reserved.
//

#import "PSMovingImageTestViewController.h"
#import "PSBadge.h"

@implementation PSMovingImageTestViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = @"Moving image";
    }
    return self;
}

- (void)dealloc {
    [super dealloc];
}

#pragma mark - View lifecycle

- (void)viewDidLoad {
    [super viewDidLoad];
    PSBadge* badge = [[PSBadge alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
    badge.value = 113;
    [self.view addSubview:badge];
    [badge release];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return YES;
}

@end
